cmake_minimum_required(VERSION 3.5)
project(TimeManagement)

# Set C++ standard
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

# Find required packages
find_package(OpenSSL REQUIRED)

# Include directories
include_directories(${CMAKE_CURRENT_SOURCE_DIR})

# Source files
set(SOURCES
    account_manager.cpp
    Task.cpp
    task_manager.cpp
    main.cpp
)

# Headers
set(HEADERS
    account_manager.h
    Task.h
    task_manager.h
    global_task.h
)

# Create executable
add_executable(time_manager ${SOURCES} ${HEADERS})

# Link libraries
target_link_libraries(time_manager
    OpenSSL::SSL
    OpenSSL::Crypto
)

# Install target (optional)
install(TARGETS time_manager DESTINATION bin)


